# sdk path
SYSROOT = $(shell pwd)/../ohos-third/sdk/sysroot
LLVM = $(shell which clang)/../..

# compile path
GCC = clang
GXX = clang++
AR = llvm-ar
AS = llvm-as
NM = llvm-nm
RANLIB = llvm-ranlib
STRIP = llvm-strip
OBJDUMP = llvm-objdump
LD = ld.lld

# 架构
ARCH = arm

# 平台编译项和路径:
EXT_CFLAGS = --target=arm-liteos -march=armv7-a --sysroot=$(SYSROOT)
EXT_INCS += -I$(SYSROOT)/usr/include/arm-liteos
EXT_INCS += -I$(LLVM)/include
EXT_LIBS += -L$(SYSROOT)/usr/lib/arm-liteos
EXT_LIBS += -L$(LLVM)/lib
